package com.ytjj.qmyx.mall.service;

import com.alipay.api.response.AlipayMerchantTradecomplainFeedbackSubmitResponse;
import com.alipay.api.response.AlipayMerchantTradecomplainQueryResponse;
import com.alipay.api.response.AlipayMerchantTradecomplainReplySubmitResponse;
import com.alipay.api.response.AlipayMerchantTradecomplainSupplementSubmitResponse;
import com.ytjj.qmyx.mall.model.AliPayComplatintsFeedbackRequest;
import com.ytjj.qmyx.mall.model.AliPayComplatintsReplyRequest;
import com.ytjj.qmyx.mall.model.AliPayComplatintsSupplementRequest;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface AliPayComplaintsService {

    /**
     * 上传图片
     * @param url
     * @return
     */
    public String  uploadAliPayComplaintsImage(String url,String complainEventId);


    /**
     * 查询投诉单详情
     * @param complainEventId
     * @return
     */
    AlipayMerchantTradecomplainQueryResponse queryAliPayComplaintsDetail(String complainEventId,String childId)throws Exception;

    /**
     * 商家留言回复
     * @param replyRequest
     * @return
     */
    AlipayMerchantTradecomplainReplySubmitResponse complaintsReplySubmit(AliPayComplatintsReplyRequest replyRequest);

    /**
     * 商户请求交易投诉处理API，上传处理类型、处理内容描述及图片凭证
     * @param feedbackRequest
     * @return
     */
    AlipayMerchantTradecomplainFeedbackSubmitResponse complaintsFeedbackSubmit(AliPayComplatintsFeedbackRequest feedbackRequest);


    /**
     * 支付宝
     * @param params
     * @param childId
     * @return
     */
    String complaintsCallBack(Map<String, String> params, String childId);


    /**
     * 商家补充凭证
     * @param supplementRequest
     * @return
     */
    AlipayMerchantTradecomplainSupplementSubmitResponse complaintsSupplementSubmit(AliPayComplatintsSupplementRequest supplementRequest);
}
